package ${sourceBasePackage}.entity;

import com.bidb.core.entity.BaseEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;


/**
 * ${description}实体类
 *
 * @author ${author}
 * @since ${createDate}
 */
@Entity
@Table(name = "${tableName}")
@DynamicInsert
@DynamicUpdate
public class ${entityName} extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	<#list fields as po>
	<#if po.primaryKey != 'Y'>
    /**
     * ${po.description}
     */
    @Column(name = "${po.fieldName}")
	private ${po.propertyType} ${po.propertyName};
	</#if>
	</#list>

    <#list fields as po>
    <#if po.primaryKey != 'Y'>
    public ${po.propertyType} get${po.propertyName?cap_first}() {
        return ${po.propertyName};
    }
    public void set${po.propertyName?cap_first}(${po.propertyType} ${po.propertyName}) {
        this.${po.propertyName} = ${po.propertyName};
    }
    </#if>
    </#list>

}
